/**
 * 
 */
package myTeam.timeShop.util;

import java.util.HashMap;
import java.util.Map;

/**
 * @author jiangjintai
 * map制造工产，每次调用put的时候往hashMap里面添加一个值并返回本身
 * 最后调用build()返回map
 */
public class MyMapBuilder {
	private HashMap<String,Object> map;
	public MyMapBuilder(Object status,String message){
		this.map= new HashMap<String,Object>();
		map.put("status", status);
		map.put("message", message);
	}
	public MyMapBuilder put(String key,Object object){
		this.map.put(key, object);
		return this;
	}
	public Map<String,Object> build(){
		return this.map;
	}
}
